package com.ktjy.pojo;

import org.springframework.stereotype.Component;

import java.io.Serializable;

//@Component(value = "zhangsan")
@Component("zhangsan")
public class User implements Serializable {
    private int id = 1;
    private String username = "zhangsan";

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", username='" + username + '\'' +
                '}';
    }
}
